package com.abel.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author heyangyang
 * @since 2024-05-17
 */
@Service
@Slf4j
public class TestService {

    @Async
    public void insert() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            log.error("插入操作失敗");
        }
        log.info("正在执行插入操作");
    }

}
